﻿using System;
using System.Collections.Generic;
using System.Text;
using GD.ModelContest.Model;

namespace GD.ModelContest.Service
{
    public interface IUserService
    {

        #region mc_user对象

        bool InsertUser(mc_user user);

        bool UpdateUser(mc_user user);

        bool DeleteUser(int userId);

        mc_user GetUserById(int userId);

        mc_user GetUserLogin(string email, string pwd);

        int IsEmailAlreadyExisted(string email);

        IList<mc_user> GetUserCollection(string name, string sex, string items, string bodyHeight, string bodyWeight, string bloodType, string city, int pageIndex, int pageSize, ref int count);

        #endregion

        #region mc_photo对象

        bool InsertPhoto(mc_photo photo);

        bool UpdatePhoto(mc_photo photo);

        bool DeletePhoto(int photoId);
		
		mc_photo GetHeadPhotoByUserId(int userId);

        IList<mc_photo> GetPhotoCollection(int userId);

        #endregion

        #region mc_video对象

        bool InsertVideo(mc_video video);

        bool UpdateVideo(mc_video video);

        bool DeleteVideo(int videoId);

        IList<mc_video> GetVideoCollection(int userId);

        #endregion

        #region mc_vote对象

        bool InsertVote(mc_vote vote);

        bool UpdateVote(mc_vote vote);

        bool DeleteVote(int voteId);

        mc_vote GetVoteByUserId(int userId);

        #endregion

        #region mc_ip对象

        bool InsertIp(mc_ip ip);

        bool UpdateIp(mc_ip ip);

        bool DeleteIp(int ipId);

        mc_ip GetIpByTime(string ip, string startTime, string endTime);
        int GetIp(string ip);

        #endregion
    }
}
